package com.wcity.manage.dao.mapper.community.permit;

import com.wcity.manage.common.vo.community.permit.PermitVo;
import com.wcity.manage.dao.model.community.permit.Permit;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 证件类型
 * Created by hgg on 2016/12/17.
 */
@Resource
public interface PermitMapper {

    /**
     * 证件类型列表
     * @param queryMap
     * @return
     */
    public List<PermitVo> permitPageList( Map<String,Object> queryMap );

    /**
     * 删除证件类型
     * @param deleteMap
     * @return
     */
    public Integer deletePermit( Map<String,Object> deleteMap );

    /**
     * 新增证件类型
     * @param permit
     * @return
     */
    public Integer saveAddPermit( Permit permit );

    /**
     * 更新证件类型
     * @param permit
     * @return
     */
    public Integer saveUpdatePermit( Permit permit );

    /**
     * 证件类型详情
     * @param detailMap
     * @return
     */
    public PermitVo permitDetail( Map<String,Object> detailMap );

    /**
     * 证件类型总数量
     * @param queryMap
     * @return
     */
    public Integer totalPermit( Map<String,Object> queryMap );

    /**
     * 证件类型列表非分页
     * @param queryMap
     * @return
     */
    public List<PermitVo> permitList( Map<String,Object> queryMap );
}
